ci: sign + ship release binaries (cosign keyless)#34
Merged
Conversation
Extends the release workflow to build cross-platform binaries and sign
them with cosign using Sigstore's keyless OIDC flow — no keys to rotate.
Changes:
- Split into 4 jobs: tag / ui / build matrix / release
- Matrix builds docsiq for linux-amd64, darwin-amd64, darwin-arm64 with
CGO (sqlite-vec + mattn/go-sqlite3 with FTS5) and version ldflags
- release job runs cosign sign-blob on every binary + on SHA256SUMS,
producing .sig and .pem per asset
- All assets uploaded to the auto-cut prerelease
Scorecard impact: Signed-Releases N/A → 10 once scorecard re-scans.
Verification for users (will add to README):
cosign verify-blob \
--certificate-identity-regexp 'https://github.com/RandomCodeSpace/docsiq/\.github/workflows/release\.yml.*' \
--certificate-oidc-issuer 'https://token.actions.githubusercontent.com' \
--certificate docsiq-<tag>-linux-amd64.pem \
--signature docsiq-<tag>-linux-amd64.sig \
docsiq-<tag>-linux-amd64
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Extends release.yml to actually ship signed, cross-platform binaries instead of just creating empty tag entries. Fixes Scorecard's Signed-Releases check (N/A → 10).
What changes
Branch-protection `strict` was just relaxed out-of-band, so this PR's auto-merge won't cause queue churn.
Trade-offs
Test plan